package com.example.lab.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (Device)表实体类
 *
 * @author makejava
 * @since 2022-05-02 15:23:54
 */
@SuppressWarnings("serial")
@TableName("device")
public class Device extends Model<Device> {
    //设备id
    @TableId(value = "Did" ,type = IdType.AUTO)
    private Integer did;
    //设备所在房间id
    private Integer droom;
    //设备名称
    private String devicename;


    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public Integer getDroom() {
        return droom;
    }

    public void setDroom(Integer droom) {
        this.droom = droom;
    }

    public String getDevicename() {
        return devicename;
    }

    public void setDevicename(String devicename) {
        this.devicename = devicename;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.did;
    }
    }

